package com.clearance.mine_clearance.untils;

import java.math.BigDecimal;


public class BigDecialUntils {

    public static boolean compareNumber(BigDecimal number) {

        if (new BigDecimal(number.intValue()).compareTo(number) == 0) {
            //整数
            return true;
        }else {
            return false;
        }
    }


    public static Integer getIntegerNumber(BigDecimal number) {
        String valueOf = String.valueOf(number.intValue());
        return Integer.valueOf(valueOf);
    }

}
